package com.atguigu.tingshu.account.impl;


import com.atguigu.tingshu.account.AccountFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
@Slf4j
public class AccountDegradeFeignClient implements AccountFeignClient {

    @Override
    public Result<RechargeInfo> getRechargeInfo(String orderNo) {
        log.error("调用【service-account】中的【getRechargeInfo】方法失败");
        return Result.fail();
    }

    @Override
    public Result rechargePaySuccess(String orderNo) {
        log.error("调用【service-account】中的【rechargePaySuccess】方法失败");
        return Result.fail();
    }

    @Override
    public Result checkAndLock(AccountLockVo accountLockVo) {
        log.error("调用【service-account】中的【checkAndLock】方法失败");
        return Result.fail();
    }

    @Override
    public Result<BigDecimal> getAvailableAmount() {
        log.error("调用【service-account】中的【getAvailableAmount】方法失败");
        return Result.fail();
    }
}
